package snooker.scoreboard;

import snooker.scoreboard.activity.R;

public enum Ball {

	Red(1,4, R.drawable.red_ball), 
	White(4,4, R.drawable.white_ball), 
	Yellow(2,4, R.drawable.yellow_ball), 
	Green(3,4, R.drawable.green_ball), 
	Brown(4,4, R.drawable.brown_ball), 
	Blue(5,5, R.drawable.blue_ball), 
	Pink(6,6, R.drawable.pink_ball), 
	Black(7,7, R.drawable.black_ball),
	FreeBall(4,0, R.drawable.red_ball);
	
	private int value;
	private int faultValue;
	private int resourceId;
	
	private Ball(int value, int faultValue, int resourceId) {
		this.value = value;
		this.faultValue = faultValue;
		this.resourceId = resourceId;
	}
	
	public int getValue() {
		return value;
	}
	
	public int getFaultValue() {
		return faultValue;
	}
	
	public int getResourceId() {
		return resourceId;
	}
}
